import { ObservationWriter } from "../ObservationWriter";
import { ReflectionSensorBase, ReflectionSensorInfo } from "./ReflectionSensorBase";

export class Vector3ReflectionSensor extends ReflectionSensorBase {

    constructor(reflectionSensorInfo: ReflectionSensorInfo) {
        super(reflectionSensorInfo, 3);
    }

    writeReflectedField(writer: ObservationWriter): void {
        const vector3 = this.getReflectionValue();
        writer.addVector3(vector3);
    }

}